import Layout from "@/layout"; //导入layout这个页面
// 审批模块路由规则
export default {
  path: "/departments",
  component: Layout,
  children: [
    {
      // path为空字符串表示默认路由
      path: "",
      name: "departments", // 路由的名称
      // name作为后续动态路由表筛选的条件
      component: () => import("@/views/departments/index"),
      meta: { title: "组织架构", icon: "tree" }, //这是控制左侧的图标和名字
    },
  ],
};
